home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
util
/
rexx
/
smacros.lha
/
FWMacros
/
Create_BusinessLetter.arexx
< prev
next >
Wrap
Text File
|
1994-12-17
|
5KB
|
137 lines
/* Create_BusinessLetter
A Macro by Steven. R. Giovenella, 5823 Dutchess Dr., Colorado Springs, CO 80918.
© Copyright 1994 Steven. R. Giovenella, All rights reserved.
This macro is my gift to the Amiga community. It may be given away free to
anyone, but it may NOT be sold in any way, shape, or form, not even for the cost of
reproduction, downloading, shipping, or handling, without express written
permission from the author listed above. Any person or company who violates the
content of the previous sentence, agrees to pay Steven R. Giovenella $1,000 (US) for
each copy of this macro sold. This macro may NOT be added to any disk which is to
be sold for any price or fee, to include shipping and handling. The ONLY way this
macro may be distributed is on a disk which is given away 100% free of all charges,
or on via telecommunications networks which do not charge any additional fee as a
result of a user downloading this particular macro. This macro may only be
reproduced in its entirety, including all comment lines and code. The individual
user may alter this macro for personal use, but may not then distribute the macro
in any modified form. If you wish, feel free to send me some cash, a Christmas card,
some other piece of software, or absolutely nothing as a gift for creating this macro.
The author of this software is not responsible for any data loss or damage to
computer equipment as a result, direct or indirect, of the use of this macro. */
Options results
Showmessage 2 0 '" ** WARNING **" " This
macro will alter the current document." "If you have not already done so, save before
proceeding." " Proceed " " Save now " " Quit "'
IF Result = 2 THEN SaveAs
IF Result = 3 THEN Exit
/* Input Required Data */
RequestText '"Create Business Letter (SENDER)" "Enter Title..." "Mr"'
SENDERTitle=Result||"."
RequestText '"Create Business Letter (SENDER)" "Enter Name..." ""'
SENDERName=Result
RequestText '"Create Business Letter (SENDER)" "Enter Job Title" ""'
SENDERJobTitle=Result
RequestText '"Create Business Letter (SENDER)" "Enter Company" ""'
SENDERCompany=Result
RequestText '"Create Business Letter (SENDER)" "Enter Company Address (Line
1/2)" ""'
SENDERCompanyAdd1=Result
RequestText '"Create Business Letter (SENDER)" "Enter Company Address (Line
2/2)" ""'
SENDERCompanyAdd2=Result
RequestText '"Create Business Letter (RECIPIENT)" "Enter Title..." "Mr"'
RECIPIENTTitle=Result||"."
RequestText '"Create Business Letter (RECIPIENT)" "Enter Name..." ""'
RECIPIENTName=Result
RequestText '"Create Business Letter (RECIPIENT)" "Enter Job Title" ""'
RECIPIENTJobTitle=Result
RequestText '"Create Business Letter (RECIPIENT)" "Enter Company" ""'
RECIPIENTCompany=Result
RequestText '"Create Business Letter (RECIPIENT)" "Enter Company Address
(Line 1/2)" ""'
RECIPIENTCompanyAdd1=Result
RequestText '"Create Business Letter (RECIPIENT)" "Enter Company Address
(Line 2/2)" ""'
RECIPIENTCompanyAdd2=Result
/* Figure Inittials */
DO i=1 to LENGTH(SENDERname)
IF RIGHT(LEFT(SENDERname,i),1)=" " THEN DO
LastInitial = RIGHT(LEFT(SENDERname,i+1),1)
END
END
Initials = LEFT(SENDERname,1)||Lastinitial||"/"
RequestText '"Create Business Letter" "Add Typist Initials (lower case)" "'Initials'"'
TypistInitials=Result
RequestText '"Create Business Letter" "Add Enclosure (delete text if none)" "ENC: "'
Enclosure=Result
RequestText '"Create Business Letter" "Add Carbon Copy (delete text if none)" "cc: "'
Carbon=Result
/* Create Document */
Type SENDERtitle SENDERname
NewParagraph
Type SENDERcompany
IF SENDERcompany="" THEN Backspace
NewParagraph
Type SENDERcompanyadd1
NewParagraph
Type SENDERcompanyadd2
NewParagraph
NewParagraph
Insert Date
NewParagraph
NewParagraph
NewParagraph
Type RECIPIENTname
IF RECIPIENTname="" THEN Backspace
NewParagraph
Type RECIPIENTjobtitle
IF RECIPIENTjobtitle="" THEN Backspace
NewParagraph
Type RECIPIENTcompany
IF RECIPIENTcompany="" THEN Backspace
NewParagraph
Type RECIPIENTcompanyadd1
NewParagraph
Type RECIPIENTcompanyadd2
NewParagraph
NewParagraph
NewParagraph
IF RECIPIENTname="" THEN Do
Type "Dear Sir:"
END
IF RECIPIENTname~="" THEN Do
Type "Dear" RECIPIENTtitle RECIPIENTname":"
END
NewParagraph
NewParagraph
NewParagraph
NewParagraph
Type "Sincerely,"
NewParagraph
NewParagraph
NewParagraph
NewParagraph
NewParagraph
Type SENDERname
NewParagraph
Type SENDERjobtitle
NewParagraph
NewParagraph
NewParagraph
Type Enclosure
NewParagraph
NewParagraph
Type carbon
DO i=1 to 13
Cursor UP
END